#include <stdio.h>
int main(){
    int a=0,n=0,sum=0,b=0;
    printf("please enter a=\n");
    scanf("%d",&a);
    printf("please enter n=\n");
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        b=b*10+a;
        sum = sum+b;
    }
    printf("sum=%d",sum);
    return 0;
}